import service from '@/utils/request'

// @Tags GameTranslate
// @Summary 创建GameTranslate
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameTranslate true "创建GameTranslate"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameTranslate/createGameTranslate [post]
export const createGameTranslate = (data) => {
  return service({
    url: '/gameTranslate/createGameTranslate',
    method: 'post',
    data
  })
}

// @Tags GameTranslate
// @Summary 删除GameTranslate
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameTranslate true "删除GameTranslate"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameTranslate/deleteGameTranslate [delete]
export const deleteGameTranslate = (data) => {
  return service({
    url: '/gameTranslate/deleteGameTranslate',
    method: 'delete',
    data
  })
}

// @Tags GameTranslate
// @Summary 删除GameTranslate
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GameTranslate"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameTranslate/deleteGameTranslate [delete]
export const deleteGameTranslateByIds = (data) => {
  return service({
    url: '/gameTranslate/deleteGameTranslateByIds',
    method: 'delete',
    data
  })
}

// @Tags GameTranslate
// @Summary 更新GameTranslate
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameTranslate true "更新GameTranslate"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameTranslate/updateGameTranslate [put]
export const updateGameTranslate = (data) => {
  return service({
    url: '/gameTranslate/updateGameTranslate',
    method: 'put',
    data
  })
}

// @Tags GameTranslate
// @Summary 用id查询GameTranslate
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameTranslate true "用id查询GameTranslate"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameTranslate/findGameTranslate [get]
export const findGameTranslate = (params) => {
  return service({
    url: '/gameTranslate/findGameTranslate',
    method: 'get',
    params
  })
}

// @Tags GameTranslate
// @Summary 分页获取GameTranslate列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GameTranslate列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameTranslate/getGameTranslateList [get]
export const getGameTranslateList = (params) => {
  return service({
    url: '/gameTranslate/getGameTranslateList',
    method: 'get',
    params
  })
}



export const getAll = (params) => {
  return service({
    url: '/gameTranslate/getAll',
    method: 'get',
    params
  })
}






